z.define,z.promise patch