add c++ files need to get rid of leaks