command line arg parsing fixed