get config, and then init