modularized the code a bit in preperation to making the import more atomic --
each run import will be its own entity