fixed load and save; implemented completely