added setOption for compatibility