added for memory leak debugging etc
2 files changed