apedec: add flush function