add entity manager