qtree_insert fixed, prototypes