rewrite baciobs, moved to data.refine.do