minor bug fix for BF, and added receiving function