fixed host handling when generating service names
fixed a bug in prefer_extension handling that would always enable the feature