support pna; port fasta tool to c api