added getOptions method