defined ttdat global, and had rmt:set-ttdat use that if its set