wf: convert many functions that need a request context to use the current one