make decoder resettable