generator support
added exampl