separation of wf_context and bridge API