reworked redis_gateway