more work on porting fasta.impala