making send_raw method private