fasta with exception handling