add shogun namespace to ref/unref