tried doing some fixes on bst.cpp, still segfaulting ugh. will examine tonight