add multithread support'

q