add promise with rest
work for promise request, not working yet