added host check (correctly this time)