init both tasks