added send event, getHeaders method