changed redis to hiredis