updated setOptions with arguments