debugging on asn and internal.c