copy/paste from above, for proxy and hosted? code seems to do exactly the same