handle send deprecation