added remote host check when debugging