not thread safe entity manager