updating to foundation lib