make trans in entity controller public to use in closures