improve-err-trap