initial socket server setup