added a few arguments to get the path of the file that needs to be loaded