pass error handler through