add excptionHanlder and errorHandler