implemented more cmdline parsing