better structure of plugins data and login fetching from ES