seperate send and send_raw functions.