final threading improvements
pkg script