various unorganized old code bits and things I don't want to disappear forever