improve the searching for previous existing config functionality