add initial accept header checking; add content-type response header