set thread to true right before starting server