updated to be compatible with redis 2.8