adding timeout to queue initialization