added cached entitymanager