updated it to use redis