make some classes to serializable