It would be so much faster if i just copied and pasted the .bt files into C++ and parsed it recursively, rewriting stuff sucks