add redirection helper functions

probably these belong somewhere else