expanded the api of the SourceParser