moved entity manager