pass in config obj