implemented reverting to old config if no tag works