minor cut_flow modifications