changed network code to run without ic2