finished update to new foundation library