fix a lot of the linting warnings