added gloabl metadata parsing