added the location functions to the service process