added timeout for redis connectin