implemented scanning of folder hierarchy (very rudimentary)