second version -- saving works, loading broken