added blocking queue for input queue