logging and search logic for existing folders added