made graphical parts deserializable, also refactored deserialization system