move towards integrating handler retrieval into handler executors
fix bug in thread ahead generator
Merge branch 'master' into better_handler_pooling