fix cmdline parsing