- fix resource leaks
- removing unused pointer values
- misc