remove unused stuff
replace ignored exceptions and printStackTrace calls with kem methods