working pending patch to add phase.errored event