added es logging