keep track of the original generator function for debugging