patched flexSetter