remove a ton of unused imports and clear out some compiler warnings