support setContentType method