in particular, the ECL schedule is now used to determine the episode length on restart. this code is still quite shaky IMO, although it seems to work for now.