fixed redis wrapper