fixed command line argument parsing bug