write weixin as a module.