add support for saving options