got error flow working