fixed main save stuff