1. fix bug

2. modify some function params
Multithread flighter