add support for function declaration generators