fisrt version of C client