+added helper functions to EntityManager