fix potential threading race condition
update podspec