fixed host handling when generating service names