add persistent files and clear whole root directory on core update