fix thread race condition
move to std::string
rm sso string dep