Foundation 4.0.4 upgrade