writehead on response