add basic accumulators
put query eval and query processor into a shared library