added the case_type option