add option parsing.