minimal c client lib and demo