return config object from load function