check newlines before top level class