added getting required headers from the response