modify /catch API