removed config and thread safe config