check for redis availability better