fix <cr> bug. and add wrap.
performance up