merge default options with opts paramater