added port randomization for redis