system now removes extra headers and imports during schema compilation.