fix env

add SetBackgroundThreads