added spec metadata parsing