follow up, switch loadResource to ctx.freeze in gaia.js