implemented auto saving and this.store cleanup