moving server::thread construcot to protected