credential thread safe fix