minor refactor to getServiceInfo method