cleaning up elasticsearch stuff