allow setting of headers, change content-type handling