flow-control lib