revert to previous threadpool implementation and compile