adjusted timeout and added secondary redirect