cryptofactory add exception