move the frontmatter class back to private and use fetchkeys()