if the config gets reloaded between this and the next line, the program might hang forever?