fix the messy logs