simplified client-server communication / added main / login