use x2j to decode metadata
remove x2j and use json to get metadata instead