simplify argument parsing