make entities serializable