add lag calculation and logging. add qlen & rlen average to counters