started fixing up the bf example to the new api