worked on osm_errors logic