adds expose_headers functionality