update for new metadata (fixing issues)