foundation upgraded to version 5

New foundation version. Add this commit to a new branch.