fixed config creation and add new config to stack