add functionality to create custom deprecated message