issues with branching+flush