hangs on multithreaded