should rename this, mainloop is a pretty bad name.

grammar and renaming won't hold back a PR from being merged.