fix network newline issue, and mods for windows