updated to latest foundation library