process options, add some validation, etc