socket server working prototypically