optimizing the nearby service manager