set the entities serializable + various debug