the multithreading issue is now resolved