add a public method to change options