added catch to promise chain