allow setting expire_after before unmarshalling