adds the new buildstate to the engine. it stores the cache, the config and other state needed by the engine.