added retract intent algorithms and update runall with additions