error handler + client configuration