added flow control demo