updating foundation lib, removing Chris' tweaks