enable threadsafe on production and stage