add flush() to decoder interface