completed simple clone of the existing cmdline-client