fixed the singleton to threadsafe pattern