enum ENTITY_TYPE replaced by entity.v0.EntityType