basic metadata extraction