modularised fasta index code