removed debug error handler