error log is now working