main adapted for better loadGene support