needs more logic if you ask me, but for the moment this will help us because we do everything on hostname and not fqdn