simplify flow control api