1. fix timer part bug. 2. finish IBIT thread management code