add various FIFO helper functions