moved the debug flag to the WorldSettings