updated error checking for FQDN