delivery: add simple flow control