ensure package name is used in all metadata calls
Fix handling of chunked response headers