extract options