some flow control module in java