started to make datamodel serializable