first pass at stats wrangling. not going to port for freebsd/busybox atm.