update constructor for bf writer