hmm, since it is running in a different thread, no need to set spark env, etc ?