updated error reporting api