more moving from trtools.rpy