initial option parsing