Lots of random things

this PR does a lot of different small things. please see the commit messages.

sadly this doesn't close any issue.