Deprecate API

fixed #415