use localhost as default if options[:host] is unset