work in progress on FBF
much cleaner and simpler, still working on it
still debugging write test pattern