putting http headers in response. Not working properly yet!