can now send messages from gui to socket (errors the other way).