add support for yielding Generator objects