adapting to elasticache