improve queueing logic, fix fd error, simplify code
0.0.2