start tasks in thread