added redis and changes