add support for timer