adds getOption, setOption methods