pkg_stx and repository improved