code cleanup, less futile attempts when listing a folder