started adding bfast code