refactor bclose a bit
morecleanup
fixup
lol