basic metadata generation