add a hostname check as well