set timeout to 5000ms