only deploy osm if we need to