add ability to restart processing from given point