completely replace setting project root here with an event hook in the engine.