fixed missing setOptions