rebuild ssource file structure