use optget() to parse options