minor changes to redis logic