cleaned up reply processing that spawned unnecessary queries
include gc.collect() in polling cycle to keep RSS memory usage from growing