fix getting local and prod instance for Datamapper,

 also change to new api to get location efficiently