upgraded multithread support