moved error flush to validation support