parsing subdirectories