mix doubling of message counts, still not perfect. cleaned code, incr ver