added orginal networkingscript.cpp