server multithreaded fixes