- output to VS output window
- fixed some leaks