update prepare script based on new case generate API