automatically register timer
version 1.2