new wrapper method getLocations