fixed cmdline parsing