some btree fixes