modify NetUtils code