Enhanced metadata fetching and parsing