add error and exception handler