added console functions to error_handler