fixes parsing of cli arguments