refactored KepPromise implementation