wrap up the rewrite with httr and pipeR