updated content-type checking.