add muti-thread and spring support