support redirect option parsing