prepare for redis support