updating to foundation lib changes