small bugfixes with obb, this needs memory management optimizations