fixed commandline parsing