working with the response object and accepting headers