trying to make file IO more portable; may still need to deal with parallelization issues
file restructure, getting ready for final submit