re-write network stats queries