refactor to use thenify and thenify-all
1.2.0