remove unused threads var
remove pool size var (move to lib)