added http-patched.r