fix for hardcoded index name in generator template
updated flex dependency