some changes regarding writing assets to disk