attempting to debug the BestFit segfault problem