implement filetree directive