clean up all references to old method for file IO.