fix bindings & most nullpointers