change to send API and fixed protocol override