deprecate some api