upgrade to 4.0.3 and apply patches for amber release