repaired error log checks