add content-type check