similar to how it's handled for geojson in #37
similar to how it's handled for geojson in #37