fixes option parsing