need to fix error log