added uppercase hostname check