implement unwind in try.pl
notes in todo