readded erroneously removed functools_backport_24