probably fix serialization of components