trying to fix sendJson override of headers