updated api.send_string