correct handling of preamble