switched bluebird promise