simplified getOption method