upgrade foundation to 4.0.7