repaired network code (windows)