add sendHead method