enhance autoredirection