1. fix id allocator
2. fix task problems
3. task must create with shared_ptr