changed network code - trying to implement packet system without reflection