- fix remaining issues; there's still a 1-byte memleak I could not find yet