first working implementation of c-client (no-ssl)