separate functions for creating and loading files