resolves #533 unwrap preamble if standalone