Deprecate API

fixed #415
console