refactor checkSource
Merge branch 'master' of https://github.com/unistra/excalibur