convert deferred to promise, max blocks to 255