reader needs proper check for fifo