added rudimentary statistics feature