more entitymanager stuff