added redis compatability