make setOptions public