adding multithread support to the deploy