updated redis configuration and fixed bugs