structure for tree and filemanager patterns