add spec to parser