renamed foo to http and bar to stdout