restructuring, moving statistics information to it's own library