fixes for getheaders