updated to foundation lib