metadata extraction