moved check_nc and check_ping up