add error handler and config info