lots of networking bugs fixed, implemented some network sync tests