Fix method name of Resolver
Refactor the build script