added actions for init, done, and fail
massive restructuring of runOp