revert fix for `TypeError: f.exists` (untested)
use preference for duration of windows consistently