added option to save everything instead of always saving