add task run/stop routine