improve ticker to use twisted api.