modify the code according to the change of go-promise