add redis proxy and change the code of Pilaf to avoid compiling problems.