binary/bug: need to rewind file if marshall fails.