add resolvers and some code generation logic