Setting the map path in a better way