make hive setup idempotent by checking both creds