add check for content type in headers