Revert "use protocol-agnostic resource loading"

This reverts commit 182d0db4c9c1f66679117f81e67b089cdcea2b20.