update all REST calls to return promises and handle accordingly