change trade and add chat

check if socket works