adding setOptions in constructor