with error log