deal with new metdata in C code