added cfapattern patch