first prototype for cmdline client