allow name_as_hostname attribute