some variables and code only needed when YPORT_FLUSH > 0