refactor to make resource checking async - #1
Merge pull request #5 from jden/patch-1

refactor to make resource checking async - #1