modified handling of genes that extend beyond contig boundaries