commandline parsing more robust