fixed the rest of the bugs that arised from the redis refactor