added start of stats gathering