more automated file loading