need better check on elasticsearch basic auth plugin too