remove unused fmt.print
Update code by new go-promise interfaces