add basic option parsing