moved headers in clear() to send()