added "flush" command