fixed network socket problems