currently almost every file has a structure like this:
i thought it was good, but it has proven itself to be confusing and ugly. so, in the span of a few next commits i'm going to move stuff around to make imports first, then types, and only then functions.
resolved since cf85f965