modularized locations fetch to getLocations()