works as cmdline