add exception for save_path and class