save for scheme mode