ENH: add a tolerance process helper function