working cmdline app