adds proper request formatting