replace static content with metadata