modified getOptions - is it correct? who knows...