change statistics to use queues

add load test as an example as well