refactored code for some good one-off functions, and added try-until-successful feature to benchmark planners