implement timer plugin