http://www.vanheusden.com/mboxstats/ modified for mac