cleaning up foundation upgrade scripts