upgraded Foundation from 5.0.2 to 5.2.0 for various bug fixes