need to add entity managers to decouple some operations