adds support to generators