add substitute function for getAllHeaders