added thread pool types
minor changes
some queue operation