added clock interface to update tasks