move some evil code

Signed-off-by: coldnew <coldnew.tw@gmail.com>