worked with JSON serialization. right now packets cant be serialized