some test code for BFD, starting code to read from process.