removing useless redis stuff
cleaning and error fixing