generate wrapper.