made some improvements on the redis backend