handle comments and preamble