make models implement Serializable