simplifying argument parsing a bit