improve error log