simplify input reading in bf.go