fix std::atomic stuff