handle "Hidden" and "NoDisplay" tags in files correctly