ADDED network functionality + commands+ fixed bug