add field info to metadata api