added elasticsearch
added code for activation