user custom errors in sub handlers