simplify and unify dna loading routine