1. bug fix - close unclosed file handlers
2. visualize the improvements