fixed remainder of cmdline argument parsing