ex9 and fixes