changed how tpg and releases threaded script is determined