return val if promise.$$state