fixes for ft rule generation