restrict to a maximum number of items in flight