fix compilation warnings
make sure everything is being cleaned up properly
0.10.1