threadsafe must be present and set