added global save feature