cleaned dirty imports and globals