revert the promise stuff