Exception from CFFI are manually thrown, so no need to call them native; IllegalStateException
remove this duplicate NN_ stuff; it is clear it belongs to nn