credential thread safe fix
Merge pull request #30 from kajdus/master

credentials thread safe fix