fixes #7 + support for propagating cookies (input cookies not supported yet though)