adding option parsing