working version using hiredis lib