added stats frontend (partial)