added http helpers for redirection