support msg with len