added default response headers and globals