updated auto redirect