fixed logic, improved host matching - matches by IP or hostname now