improve refreshOptions; add params