network: fixed so it works on windows 7