update ftbfs logic