first untested implementation of entity manager