added entitymanager