now use the prescribed rather than actual duration
Improved resp validity heuristic
fixed minor typo