added some changes to FBF.cpp and compile script