Retain file between prepare and marshal phases

Fixes #4