create proper config object for createOptions method