small changes on fifo lib