first version of entity generator