add reasonable default for domain if non is specified