added a save-ram mode