modify api/maxflow initialization and adding while breaker