add get_redirected tool and tests