doc and fix flush