added getline loop to spec_parser