fixed switch for get_dataset $mode