fix automatic loading files