major work on the dynamically generated options