added \getallheaders replacement