added catch-all error handler
fixed it