improve RIFF reader