add configuration feature for csimsimi, and chang its architecture