Networking script fixes