wrote script to fix old logs