preload the input/output files