added chmod to load_from_file