correct errors for option sleep and for geojson input file