added timer api