metadata parsing