put sth out of promise.then