altered loading of files to make more jar friendly