added a 1sec timeout before redirect