automatic saving working.  still might need some testing