working on hw flow control