added method to send raw data