make ES schema dynamic