access a value which might be within a promise