better stats / logging