metadata now only returns valid entries.