added support to send raw data