added setoption feature