socket/server communication working