fixed load_from_file