added redirects and the end of post requests