added FLOW parameter to brush engine