rewrite in promises
1.1.0