add packaged_task but does not work yet (their bug)
fixed compilation error but still don't understand the issues