fixed: bug with options.functions argument