added redis stuff