call init() when running the task