added aggregation, files search to esgsearch process