add bluebird in define wrapper. issue #816