changed out typemaps for stringc and path to avoid memory leaks