#3 replace ids in simple metadata structures