added control for postprocessing, and threaded event processing