updated pkg_stx and pkg_stx_create