fixing stuff for r.http