return the same wrapper function when externalizing a func multiple times