another portability fix for redis