debug fixes to redis connect