refs: allow passing flags when beginning transactions