allow decoder to decode arbitrary file