reduce number of calls to parser

efficiency
Merge pull request #78 from ssured/patch-3

reduce number of calls to parser