pkg_stx variables rehauled