added new function and renamed promise

@graysonc