upgraded foundation library