optimize _scanSources
Merge pull request #75 from xboston/patch-10

optimize _scanSources