use send_data options instead of setting headers