modify original foundation files