full ECC support; fixed exception raising