account saving and restore tested and working