package rename, flush() method used in many places.