fixed local host check