save state method OK
buggy load_file fixed