change code to support docker redis