add mergeOptions function