extend deprecated_api with warning messages