add resolver interface
use resolver interface
Merge pull request #2 from temp/master

Add resolver interface