fix argument parsing