added preparings for redirect strategy