fixing idempotency issue in pluign installation