basic client-server communication
dirty multithread server
doesn't work yet