modified CheckNet.java