proper osm file generation