add flush command to buffered queue