added callback arg to load_file_from_uri