thread safe configuration