adding resumable option that will soon replace the resetBefore logic