changed from using database to splitting on fqdn