a class to load remote or local files