various fifo improvements