Upgrade foundation

closes #156