rough draft of redirection server