add slug and generate entities