fixed wrong name for send_data in the switch block for dsn