return preamble instead of writing it to a file