more work on option parser helper functions