fix simple bug in resolve_stub
rename "request" to "intent" across the board. less overloaded.