add support for functions in parseOptions