Better metadata retrieval and debugging