add entities and rest resources