hananel's fifo finished, pretty-much-working version of top