smaller scope for EntityManagers