networking script fixes