added option to include failure reason