replace foundation files