-fixed some null pointer errors
-reverted threadexecutor addition as it there was too many concurrency
errors that i could not trace. Perhaps does not work well when used in
static way.