fix xml cast problem, and timer pool interface